.recent-edits-page {
  padding: 32px;
  background: #F8F6F3;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.recent-edits-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-header {
  margin-bottom: 32px;
  padding: 24px; /* 统一的padding */
  min-height: 60px; /* 统一的最小高度 */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.header-content h1 {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.header-content p {
  font-size: 18px;
  color: #6c757d;
  margin: 0;
  font-weight: 400;
}

.filter-section {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.time-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: #6c757d;
  border-radius: 25px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 25px;
}

.filter-btn:hover {
  color: #495057;
  transform: translateY(-1px);
}

.filter-btn:hover::before {
  opacity: 0.1;
}

.filter-btn.active {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.filter-btn.active::before {
  opacity: 1;
}

.filter-btn span {
  position: relative;
  z-index: 1;
}

.stats-info {
  font-size: 14px;
  color: #6c757d;
}

.edits-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.edit-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.edit-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.edit-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.edit-item:hover::before {
  opacity: 1;
}

.edit-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.edit-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.edit-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.edit-actions {
  display: flex;
  gap: 8px;
  margin-left: 16px;
  position: relative;
  z-index: 2;
}

.edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.edit-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.edit-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.type-icon {
  font-size: 14px;
}

.type-text {
  font-weight: 500;
}

.edit-changes {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 16px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.edit-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  color: #8e9aaf;
  position: relative;
  z-index: 2;
}

.edit-time {
  font-weight: 500;
  color: #667eea;
}

.edit-date {
  color: #8e9aaf;
}

.btn-action {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.category-icon {
  font-size: 20px;
}

/* 删除重复的样式，因为已经在上面定义过了 */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 12px 0;
}

.empty-state p {
  font-size: 18px;
  color: #6c757d;
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.load-more-section {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.load-more-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.load-more-btn:hover::before {
  left: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .recent-edits-page {
    padding: 20px 16px;
  }

  .page-header {
    padding: 24px;
    margin-bottom: 24px;
  }

  .header-content h1 {
    font-size: 28px;
  }

  .header-content p {
    font-size: 16px;
  }

  .time-filters {
    gap: 8px;
    padding: 6px;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .edit-item {
    padding: 20px;
    border-radius: 12px;
  }

  .edit-thumbnail {
    width: 50px;
    height: 50px;
    margin-right: 16px;
  }

  .edit-title {
    font-size: 18px;
  }

  .edit-changes {
    font-size: 15px;
  }

  .edit-meta {
    gap: 16px;
    font-size: 13px;
  }

  .btn-action {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .load-more-btn {
    padding: 14px 28px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .recent-edits-page {
    padding: 16px 12px;
  }

  .page-header {
    padding: 20px;
  }

  .header-content h1 {
    font-size: 24px;
  }

  .time-filters {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .edit-item {
    padding: 16px;
    flex-direction: column;
    gap: 16px;
  }

  .edit-thumbnail {
    width: 60px;
    height: 60px;
    margin-right: 0;
    align-self: center;
  }

  .edit-content {
    text-align: center;
  }

  .edit-header {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .edit-meta {
    justify-content: center;
  }

  .edit-actions {
    justify-content: center;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.edit-item {
  animation: fadeInUp 0.5s ease-out;
}

.edit-item:nth-child(1) { animation-delay: 0.1s; }
.edit-item:nth-child(2) { animation-delay: 0.2s; }
.edit-item:nth-child(3) { animation-delay: 0.3s; }
.edit-item:nth-child(4) { animation-delay: 0.4s; }
.edit-item:nth-child(5) { animation-delay: 0.5s; }

/* 滚动条样式 */
.recent-edits-page::-webkit-scrollbar {
  width: 8px;
}

.recent-edits-page::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.recent-edits-page::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.recent-edits-page::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.load-more-btn {
  padding: 12px 24px;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .recent-edits-page {
    padding: 16px;
  }
  
  .filter-controls {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .time-filters {
    justify-content: center;
  }
  
  .stats-info {
    text-align: center;
  }
  
  .edit-content {
    flex-direction: column;
    gap: 12px;
  }
  
  .edit-thumbnail {
    width: 100%;
    height: 120px;
  }
  
  .edit-header {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .edit-info {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .edit-actions {
    justify-content: flex-start;
  }
}
